package com.zhangpeng520.login.service;

import com.zhangpeng520.user.dao.UserMapper;
import com.zhangpeng520.user.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/8/11 0011.
 */
@Service("loginServiceipml")
public class LoginServiceipml implements LoginService {

    @Autowired
    UserMapper userMapper;


    /**
     *
     *@Author zhangpeng(www.zhangpeng520.com)
     *@Date 2017/8/11 0011 9:42
     *@Desripition 从数据查找指定用户
     *
     */

    @Override
    public User findLoginUser(String username)
    {
        User user=null;
        user= userMapper.selectByUsername(username);

        return user;
    }
}
